<!DOCTYPE html>
<html  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <nav th:replace="include/top :: link"></nav>
    <style>
        .img_media{
            width: 50px;
            height: 50px;
        }
        .content_div{
            margin: 30px;
            padding: 10px;
            background-color: #ffffff;
        }
    </style>
</head>
<body style="background-image: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);background-repeat: no-repeat">
<!--top-->
<div th:replace="include/top :: top" ></div>
<!--content-->
<div class="row content_div" >
    <!--left-->
    <div class="col-xs-12 col-md-8">
        <h1><span class="glyphicon glyphicon-blackboard" aria-hidden="true"></span>&nbsp;&nbsp;主页
        </h1>
        <hr>
<!--        media-->
        <div class="media">
            <div class="media-left">
                <a href="#">
                    <img class="media-object img-rounded img_media"  th:if="${session.user != null}" th:src="${session.user.getAvatar_url()}">
                </a>
            </div>
            <div class="media-body">
                <h4 class="media-heading" th:if="${session.user != null}" th:text="${session.user.getName()}">Media heading</h4>

            </div>
        </div>
    </div>
<!--    右边栏-->
    <div class="col-xs-12 col-md-4">

    </div>
</div>



</body>
</html>